<#include "/flt/include/_layout.html"/>
<#macro customScript> 
	$('.datatable').dataTable();
</#macro>
<@layout scriptInfo=customScript>
<ul class="breadcrumb">
	<li>
		<i class="icon-home"></i>
		<a href="config/index">首页</a> 
		<i class="icon-angle-right"></i>
	</li>
	<li><a href="#">配置界面</a></li>
</ul>

<div class="row-fluid sortable">		
	<div class="box span12">
		<div class="box-header" data-original-title>
			<h2><i class="halflings-icon user"></i><span class="break"></span>query接口字段管理</h2>
			<div class="box-icon">
				<a href="#" class="btn-setting"><i class="halflings-icon wrench"></i></a>
				<a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a>
				<!-- <a href="#" class="btn-close"><i class="halflings-icon remove"></i></a> -->
			</div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered table-condesed bootstrap-datatable datatable">
			  <thead>
				  <tr>
					  <th>类别代码</th>
					  <th>类别名称</th>
					  <th>是否可见</th>
					  <th>操作</th>
				  </tr>
			  </thead>   
			  <tbody>
			  	<#list datatypeList as datatype>
			  		<tr>
				  		<td>${datatype.dataType}</td>
				  		<td class="center">${datatype.typeName}</td>
				  		<td class="center">
				  			<#if datatype.isAble==1>
								<span class="label label-success">可用</span>
							<#elseif datatype.isAble==0>	
								<span class="label label-error">不可用</span>
							</#if>
						</td>
						<td class="center">
							<a class="btn btn-success" href="#">
								<i class="halflings-icon white zoom-in"></i>  
							</a>
							<a class="btn btn-info" href="${ctx}/config/queryfield/edit/${datatype.dataType}">
								<i class="halflings-icon white edit"></i>  
							</a>
							<a class="btn btn-danger" href="#">
								<i class="halflings-icon white trash"></i> 
							</a>
						</td>
					</tr>
			  	</#list>
			  </tbody>
		  </table>            
		</div>
	</div><!--/span-->

</div><!--/row-->

<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header" data-original-title>
			<h2><i class="halflings-icon user"></i><span class="break"></span>entry接口字段管理</h2>
			<div class="box-icon">
				<a href="#" class="btn-setting"><i class="halflings-icon wrench"></i></a>
				<a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a>
				<!-- <a href="#" class="btn-close"><i class="halflings-icon remove"></i></a> -->
			</div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
			  <thead>
				  <tr>
					  <th>类别代码</th>
					  <th>类别名称</th>
					  <th>是否可见</th>
					  <th>操作</th>
				  </tr>
			  </thead>   
			  <tbody>
			  	<#list datatypeList as datatype>
			  		<tr>
				  		<td>${datatype.dataType}</td>
				  		<td class="center">${datatype.typeName}</td>
				  		<td class="center">
				  			<#if datatype.isAble==1>
								<span class="label label-success">可用</span>
							<#elseif datatype.isAble==0>	
								<span class="label label-error">不可用</span>
							</#if>
						</td>
						<td class="center">
							<a class="btn btn-success" href="#">
								<i class="halflings-icon white zoom-in"></i>  
							</a>
							<a class="btn btn-info" href="#">
								<i class="halflings-icon white edit"></i>  
							</a>
							<a class="btn btn-danger" href="#">
								<i class="halflings-icon white trash"></i> 
							</a>
						</td>
					</tr>
			  	</#list>
			  </tbody>
		  </table>          
		</div>
	</div><!--/span-->
</div><!--/row-->
</@layout>
